home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 46 / Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso / -serious- / hardware / fmdriver / install software < prev    next >
Text File  |  1999-09-06  |  8KB  |  329 lines

  1. ; $VER: Installation script for FMdriver 1.10
  2. ; © Stefan Robl
  3. ; Created with GoldED 6.1.4
  4.  
  5.  
  6. ; check if we are running under correct OS
  7. (if (< (/ (getversion) 65536) 39) 
  8.     (
  9.         (abort "Incorrect OS version (software requires OS 39 or better )!")
  10.     )
  11. )
  12.  
  13. ; error handling
  14. (onerror
  15.     (if (> @ioerr 0)
  16.         (
  17.             (message
  18.                 ("An error has occurred during installation. Please check the log file to understand the error.")
  19.             )
  20.         )
  21.     )
  22.     (exit (quiet))
  23. )
  24.  
  25. (welcome)
  26.  
  27.  
  28. (set @default-dest
  29.     (askdir
  30.         (prompt "Please choose the installation path for the FMdriver programs:\n(a new folder named \"FrameMachine\" will be created there)")
  31.         (help "Installation creates a new folder \"FrameMachine\" for FMBaseConfig and FMTV in the path you specify.")
  32.         (default @default-dest)
  33.     )
  34. )
  35.  
  36. (set #fmdir (tackon @default-dest "FrameMachine"))
  37.  
  38.  
  39. (set #cputype
  40.     (askoptions
  41.         (prompt "Which CPU type(s) do you want to have supported?")
  42.         (help "Select the type of CPU you want to have supported.\nIf you have no PPC-accelerator card, 68k is your choice.\nIf you have a PPC-board, there is no need to install the 68k-versions, too.")
  43.         (choices
  44.             " 68k (68020 or better)"
  45.             " PPC (PPC603e or better, WarpOS required)"
  46.         )
  47.         (default (+ 1 2))
  48.     )
  49. )
  50.  
  51. (if (= #cputype 0)
  52.   (abort "No CPU-type selected.\n\nInstallation aborted!")
  53. )
  54.  
  55.  
  56.  
  57. (set #video-format
  58.     (askchoice
  59.         (prompt "What type of video format has your Amiga as default?")
  60.         (help "If your Amiga is in Europe, you normally have to choose PAL")
  61.         (choices
  62.             "PAL"
  63.             "NTSC"
  64.         )
  65.         (default 0)
  66.     )
  67. )
  68.  
  69.  
  70.  
  71. (set #fmfiles
  72.     (askoptions
  73.         (prompt "What files shall be installed?")
  74.         (help "FMdriver.guide: Online documentation (AmigaGuide format) for the FMdriver programs\n\nFMBaseConfig: Config program for FM display settings\n\nFMInit: Tool for the WB and CLI which initializes the FrameMachine\n\nFMTV: Watch TV on your Workbench!\n\nFMRecorder: Records and converts anims\n\nFMGrab: CLI tool for grabbing single images\n\nFMRecord/FMRecordDec: like FMRecorder, but for the CLI")
  75.         (choices
  76.             " FMdriver.guide - online documentation"
  77.             " FMBaseConfig"
  78.             " FMInit"
  79.             " FMTV"
  80.             " FMRecorder"
  81.             " FMGrab (CLI tool)"
  82.             " FMRecord / FM RecordDec (CLI tool)"
  83.         )
  84.         (default (+ 1 2 4 8 16 32 64))
  85.     )
  86. )
  87.  
  88. (if (= #fmfiles 0)
  89.   (abort "No FMdriver application(s) selected.\n\nInstallation aborted!")
  90. )
  91.  
  92.  
  93. (COMPLETE 0) ; makedir FrameMachine
  94. (makedir (tackon @default-dest "FrameMachine") (infos))
  95.  
  96.  
  97. (COMPLETE 10) ; wizard.library
  98. (copylib 
  99.     (prompt "Copying wizard.library to LIBS:")
  100.     (help "The \"wizard.library\" is needed for the applications using a GUI.\nIt is the free distributable part of Haage&Partners StormWIZARD system.")
  101.     (source "libs/wizard.library")
  102.     (dest "LIBS:")
  103.     (optional nofail force askuser)
  104.     (confirm)
  105. )
  106.  
  107.  
  108. (COMPLETE 20) ; XILINX-files
  109. (copyfiles 
  110.     (prompt "Copying XILIX-files to DEVS:")
  111.     (help "These files are needed to configure the FrameMachinehardware.\nThey are loaded on driver-open into the reconfigurable Xilinx-Units on the FrameMachine.\nYou have to copy both files to \"DEVS:\", otherwise the driver cannot work!")
  112.     (source "devs/")
  113.     (dest "DEVS:")
  114.     (pattern "XILINX#?")
  115.     (optional nofail force askuser)
  116.     (confirm)
  117. )
  118.  
  119.  
  120. (COMPLETE 70) ; PAL/NTSC settings
  121. (if (= #video-format 0)
  122.     ( ; PAL
  123.         (copyfiles
  124.             (prompt "Copying PAL-settings to DEVS:")
  125.             (help @copy-files)
  126.             (source "devs/FrameMachine.settings.PAL")
  127.             (newname "FrameMachine.settings")
  128.             (dest "DEVS:")
  129.             (optional nofail force)
  130.         )
  131.     )
  132.     ; else
  133.     ( ; NTSC
  134.         (copyfiles
  135.             (prompt "Copying NTSC-settings to DEVS:")
  136.             (help @copy-files)
  137.             (source "devs/FrameMachine.settings.NTSC")
  138.             (newname "FrameMachine.settings")
  139.             (dest "DEVS:")
  140.             (optional nofail force)
  141.         )
  142.     )
  143. )
  144.  
  145.  
  146. (COMPLETE 30)
  147. (if (BITAND #fmfiles 1) ; FMdriver.guide
  148.   (
  149.     (copyfiles
  150.       (prompt "Copying Guide-documentation...")
  151.       (help @copy-files)
  152.       (source "FMdriver.guide")
  153.       (dest #fmdir)
  154.       (infos)
  155.       (optional nofail force)
  156.       (confirm)
  157.   )
  158.   )
  159. )
  160.  
  161.  
  162. (COMPLETE 40)
  163. (if (BITAND #fmfiles 2) ; FMBaseConfig
  164.   (
  165.     (if (BITAND #cputype 1)
  166.       (copyfiles
  167.         (prompt "Copying FMBaseConfig_68k...")
  168.         (help @copy-files)
  169.         (source "FMBaseConfig_68k")
  170.         (dest #fmdir)
  171.         (infos)
  172.         (optional nofail force)
  173.         (confirm)
  174.       )
  175.     )
  176.     (if (BITAND #cputype 2)
  177.       (copyfiles
  178.         (prompt "Copying FMBaseConfig_PPC...")
  179.         (help @copy-files)
  180.         (source "FMBaseConfig_PPC")
  181.         (dest #fmdir)
  182.         (infos)
  183.         (optional nofail force)
  184.         (confirm)
  185.       )
  186.     )
  187.   )
  188. )
  189.  
  190.  
  191. (COMPLETE 50)
  192. (if (BITAND #fmfiles 4) ; FMInit
  193.   (copyfiles
  194.     (prompt "Copying FMInit...")
  195.     (help @copy-files)
  196.     (source "FMInit")
  197.     (dest #fmdir)
  198.     (infos)
  199.     (optional nofail force)
  200.     (confirm)
  201.   )
  202. )
  203.  
  204.  
  205. (COMPLETE 60)
  206. (if (BITAND #fmfiles 8) ; FMTV
  207.   (
  208.     (if (BITAND #cputype 1)
  209.       (copyfiles
  210.         (prompt "Copying FMTV_68k...")
  211.         (help @copy-files)
  212.         (source "FMTV_68k")
  213.         (dest #fmdir)
  214.         (infos)
  215.         (optional nofail force)
  216.         (confirm)
  217.       )
  218.     )
  219.     (if (BITAND #cputype 2)
  220.       (copyfiles
  221.         (prompt "Copying FMTV_PPC...")
  222.         (help @copy-files)
  223.         (source "FMTV_PPC")
  224.         (dest #fmdir)
  225.         (infos)
  226.         (optional nofail force)
  227.         (confirm)
  228.       )
  229.     )
  230.   )
  231. )
  232.  
  233.  
  234. (COMPLETE 70)
  235. (if (BITAND #fmfiles 16) ; FMRecorder
  236.   (
  237.     (if (BITAND #cputype 1)
  238.       (copyfiles
  239.         (prompt "Copying FMRecorder_68k...")
  240.         (help @copy-files)
  241.         (source "FMRecorder_68k")
  242.         (dest #fmdir)
  243.         (infos)
  244.         (optional nofail force)
  245.         (confirm)
  246.       )
  247.     )
  248.     (if (BITAND #cputype 2)
  249.       (copyfiles
  250.         (prompt "Copying FMRecorder_PPC...")
  251.         (help @copy-files)
  252.         (source "FMRecorder_PPC")
  253.         (dest #fmdir)
  254.         (infos)
  255.         (optional nofail force)
  256.         (confirm)
  257.       )
  258.     )
  259.   )
  260. )
  261.  
  262.  
  263. (COMPLETE 80)
  264. (if (BITAND #fmfiles 32) ; FMGrab
  265.   (
  266.     (if (BITAND #cputype 1)
  267.       (copyfiles
  268.         (prompt "Copying FMGrab_68k...")
  269.         (help @copy-files)
  270.         (source "FMGrab_68k")
  271.         (dest #fmdir)
  272.         (optional nofail force)
  273.         (confirm)
  274.       )
  275.     )
  276.     (if (BITAND #cputype 2)
  277.       (copyfiles
  278.         (prompt "Copying FMGrab_PPC...")
  279.         (help @copy-files)
  280.         (source "FMGrab_PPC")
  281.         (dest #fmdir)
  282.         (optional nofail force)
  283.         (confirm)
  284.       )
  285.     )
  286.   )
  287. )
  288.  
  289.  
  290. (COMPLETE 90)
  291. (if (BITAND #fmfiles 64) ; FMRecord
  292.   (
  293.     (copyfiles
  294.       (prompt "Copying FMRecord...")
  295.       (help @copy-files)
  296.       (source "FMRecord")
  297.       (dest #fmdir)
  298.       (optional nofail force)
  299.       (confirm)
  300.     )
  301.     (if (BITAND #cputype 1)
  302.       (copyfiles
  303.         (prompt "Copying FMRecordDec_68k...")
  304.         (help @copy-files)
  305.         (source "FMRecordDec_68k")
  306.         (dest #fmdir)
  307.         (optional nofail force)
  308.         (confirm)
  309.       )
  310.     )
  311.     (if (BITAND #cputype 2)
  312.       (copyfiles
  313.         (prompt "Copying FMRecordDec_PPC...")
  314.         (help @copy-files)
  315.         (source "FMRecordDec_PPC")
  316.         (dest #fmdir)
  317.         (optional nofail force)
  318.         (confirm)
  319.       )
  320.     )
  321.   )
  322. )
  323.  
  324.  
  325. (COMPLETE 100)
  326.  
  327. (exit)
  328.  
  329.